package com.skhu.as.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.skhu.as.domain.PresentCondition;

public class PresentConditionM implements RowMapper {

	@Override
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {

		PresentCondition presentCondition = new PresentCondition();
		
		presentCondition.setPresentConditionNo(rs.getInt("present_condition_no"));
		presentCondition.setFaultHandlingNo(rs.getInt("fault_handling_no"));
		presentCondition.setWorkerNo(rs.getInt("worker_no"));
		presentCondition.setDate(rs.getString("date"));
		presentCondition.setContent(rs.getString("content"));
		
		return presentCondition;
	}
	
}
